package com.up.stores.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author KLE1NBLUE&LackOxy
 * @since 2022-10-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Address对象", description="")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收货地址id")
    @TableId(value = "add_id", type = IdType.AUTO)
    private Integer addId;

    @ApiModelProperty(value = "归属的管理员id")
    private Integer admId;

    @ApiModelProperty(value = "商家id")
    private Integer busId;

    @ApiModelProperty(value = "收发货人姓名")
    private String name;

    @ApiModelProperty(value = "省-名称")
    private String provinceName;

    @ApiModelProperty(value = "省-行政代号")
    private String provinceCode;

    @ApiModelProperty(value = "市-名称")
    private String cityName;

    @ApiModelProperty(value = "市-行政代号")
    private String cityCode;

    @ApiModelProperty(value = "区-名称")
    private String areaName;

    @ApiModelProperty(value = "区-行政代号")
    private String areaCode;

    @ApiModelProperty(value = "邮政编码")
    private String zip;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "手机")
    private String phone;

    @ApiModelProperty(value = "标签")
    private String tag;

    @ApiModelProperty(value = "是否默认：0-不默认，1-默认")
    private Integer isDefault;

    @ApiModelProperty(value = "创建人")
    private String createdUser;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "修改人")
    private String modifiedUser;

    @ApiModelProperty(value = "修改时间")
    private Date modifiedTime;

}
